﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WomanMotion.WebApi.Model.Dtos.Comment
{
    /// <summary>
    /// 前端评论控件Tree数据
    /// </summary>
    public class CommentTreeVM
    {
        /// <summary>
        /// ID
        /// </summary>
        public long id { get; set; }

        // <summary>
        /// 是否是拥有者，为true则可以删除，管理员全部为true
        /// </summary>
        public bool owner { get; set; }

        // <summary>
        /// 是否点赞
        /// </summary>
        public bool hasLike { get; set; }

        // <summary>
        /// 点赞数量
        /// </summary>
        public int likeNum { get; set; }

        // <summary>
        /// 评论者头像地址
        /// </summary>
        public string? avatarUrl { get; set; }

        // <summary>
        /// 评论者昵称
        /// </summary>
        public string? nickName { get; set; }

        // <summary>
        /// 评论内容
        /// </summary>
        public string? content { get; set; }

        // <summary>
        /// 所属评论的唯一主键
        /// </summary>
        public long parentId { get; set; }

        // <summary>
        /// 创建时间
        /// </summary>
        public string? createTime { get; set; }
    }
}